package cn.edu.nuc.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.nuc.crm.entity.Application;

public interface ApplicationMapper {
    int deleteByPrimaryKey(Integer aptId);

    int insert(Application record);

    int insertSelective(Application record);

    Application selectByPrimaryKey(Integer aptId);

    int updateByPrimaryKeySelective(Application record);

    int updateByPrimaryKey(Application record);
    
    int getcount();

	List<Application> findByid(@Param("start")int start,@Param("offset")int offset);
	//查询
	List<Application> selectByName(String aptTrueName);
	//得到还款列表
	int getRepaymentcount();

	int getStatusCount(@Param("status")int status);

	List<Application> findByidStatus(@Param("status")int status
			,@Param("start")int start,@Param("offset")int offset);
	
	List<Application> findAll();

	int getCountId(@Param("accountid")Integer accountid);

	List<Application> findCountId(@Param("accountid")Integer accountid
			, @Param("start")int start, @Param("offset")int offset);

}